package com.imooc.pan.feignservice;

import com.imooc.pan.entity.RPanUserFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Janson
 * @Description 获取用户根文件夹
 * @Date 2023/8/6
 */
@Component
@FeignClient(value = "ytupan-files", fallbackFactory = UserFileServiceFallbackFactory.class)
public interface UserFileServiceClient {
    
    @GetMapping("/file/getUserRootFile")
    public RPanUserFile getUserRootFile(@RequestParam("userId") Long userId);
}
